package org.fengdi.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.fengdi.store.entity.Storage;

public interface StorageService extends IService<Storage> {
    Storage findStorageByCommodityCode(String commodityCode);

    // 扣除商品库存
    void decreaseStorage(String commodityCode, Integer count) throws RuntimeException;
}
